//
//  ChannerViewController.m
//  ProjectOfBStage
//
//  Created by cuixin on 15/11/11.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "ChannerViewController.h"

@interface ChannerViewController ()
@end

@implementation ChannerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createSearch];
}

-(void)createSearch{
    UIButton *searchButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [searchButton setFrame:CGRectMake(10, 10, 25, 25)];
    [searchButton setBackgroundImage:[UIImage imageNamed:@"iconfont-sousuo"] forState:UIControlStateNormal];
    [searchButton addTarget:self action:@selector(searchButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.navigationController.navigationBar addSubview:searchButton];
    
    NSLog(@"ha");
}


-(void)createNavigationTitileButton{
    
    UIButton *firstButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [firstButton setFrame:CGRectMake(100, 10, 20, 20)];
}
//搜索按钮的点击事件
-(void)searchButtonAction:(UIButton *)button{
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
